package org.oproject.rmi.hessian.core.service.loader;

import java.util.Set;

import org.oproject.rmi.hessian.core.logger.LogFactory;
import org.oproject.rmi.hessian.core.logger.Logger;
import org.oproject.rmi.hessian.core.service.ServiceInfo;
import org.oproject.rmi.hessian.core.service.ServiceManager;

/**
 * 加载服务对象接口
 * @see 
 * @author shenqing
 * @since 1.0
 * @version 1.0, Nov 16, 2010 10:53:35 AM
 */
public abstract class ServiceLoader
{
	private static Logger log = LogFactory.getLogger(ServiceLoader.class);
	
	public void regiestService()
	{
		log.info("<-- 开始加载服务接口 -->");
		ServiceManager.regiestService(this.load());
		log.info("<-- 服务接口加载成功 -->");
	}
	
	protected abstract Set<ServiceInfo> load();
}